package com.ruizhong.integratedmediawithoutc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruizhong.integratedmediawithoutc.entity.TMaterial;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface TMaterialService extends IService<TMaterial> {
    List<TMaterial> getResourceList(String programType);

    List<HashMap<String, String>> getMaterialList();

    void addResources(Map<String, Object> conditionMap) throws IOException;

    void saveNewMaterial(long duration, String fileName,Integer materialType);

    void deleteResource(Map<String, Object> conditionMap);

    void deleteAllResources();
}
